package com.example.weizix.presenter;

import com.example.weizix.base.BasePresenter;
import com.example.weizix.bean.columnBean;
import com.example.weizix.model.SectionsModel;
import com.example.weizix.net.ReonClick;
import com.example.weizix.view.SectionsView;

public class SectionsPresenter extends BasePresenter<SectionsView> {

    private SectionsModel model;

    @Override
    protected void initModel() {
        model = new SectionsModel();
        addModel(model);
    }

    public void getSectIon() {
        model.getSection(new ReonClick<columnBean>() {
            @Override
            public void cheng(columnBean columnBean) {
                view.setData(columnBean.getData());
            }
        });
    }
}
